<?php
namespace Service\Library;

use \Service\Library\LibRedis;

/**
 * Generate ID
 */
class LibGenId
{
    private static $genid_key = 'GENID';

    public static function get($channel, $inc_num = 1)
    {
        return LibRedis::getIns()->hincrby(self::$genid_key, $channel, $inc_num);
    }
}